using System;
namespace MicroMsg.Manager
{
	public class NewMsgVoiceManager
	{
		private const string TAG = "NewMsgVoiceManager";
		private static VoiceEffectManager newMsgSound = new VoiceEffectManager("Resource/Voice/newmsg.pcm", 1f);
		private static VoiceEffectManager voiceEndSound = new VoiceEffectManager("Resource/Voice/voiceend.pcm", 1f);
		private static VoiceEffectManager AlertNudge = new VoiceEffectManager("Resource/Voice/AlertNudge.pcm", 0.5f);
		private static bool IsSpeakLoud()
		{
			return GConfigMgr.settings.bIsPlayBySpeakPhone;
		}
		public static void PlayNewMsgSound()
		{
			NewMsgVoiceManager.newMsgSound.IsLoudVoice = NewMsgVoiceManager.IsSpeakLoud();
			NewMsgVoiceManager.newMsgSound.PlaySound();
		}
		public static void PlayVoiceEndSound()
		{
			NewMsgVoiceManager.voiceEndSound.IsLoudVoice = NewMsgVoiceManager.IsSpeakLoud();
			NewMsgVoiceManager.voiceEndSound.PlaySound();
		}
		public static void PlayAlertNudge()
		{
			NewMsgVoiceManager.AlertNudge.IsLoudVoice = NewMsgVoiceManager.IsSpeakLoud();
			NewMsgVoiceManager.AlertNudge.PlaySound();
		}
	}
}
